package com.ruoyi.jiaopei.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班级业务对象 tb_class
 *
 * @author macy
 * @date 2024-04-03
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TbClassBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 课程ID
     */
    @NotNull(message = "课程ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long curriculumId;

    /**
     * 授课老师
     */
    @NotNull(message = "授课老师不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long teacherId;

    private String teacherName;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String state;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空", groups = {  EditGroup.class })
    private Date createdDate;


}
